cmake_minimum_required(VERSION 3.1)
project(PCL)

find_package(PCL 1.10 REQUIRED)

include_directories(${PCL_INCLUDE_DIRS})

add_executable(example src/example.cpp)
target_link_libraries(example ${PCL_LIBRARIES})

add_executable(pcl_read_save src/PCL读取和保存点云.cpp)
target_link_libraries(pcl_read_save ${PCL_LIBRARIES})
add_executable(pcl_read_save1 src/pcl_read_and_save.cpp)
target_link_libraries(pcl_read_save1 ${PCL_LIBRARIES})

add_executable(pcl_CoordinateSystem /root/PCL/src/Chapter1/PCL在点云可视化中添加坐标系.cpp)
target_link_libraries(pcl_CoordinateSystem ${PCL_LIBRARIES})
add_executable(pcl_CoordinateSystem1 /root/PCL/src/Chapter1/PCL在点云可视化中添加坐标系1.cpp)
target_link_libraries(pcl_CoordinateSystem1 ${PCL_LIBRARIES})


add_executable(pcl_VoxelGrid /root/PCL/src/Chapter1/PCL可视化体素网格.cpp)
target_link_libraries(pcl_VoxelGrid ${PCL_LIBRARIES})
add_executable(pcl_VoxelGrid1 /root/PCL/src/Chapter1/PCL可视化体素网格1.cpp)
target_link_libraries(pcl_VoxelGrid1 ${PCL_LIBRARIES})

add_executable(pcl_Curvature /root/PCL/src/Chapter1/PCL点云基于曲率大小渲染颜色.cpp)
target_link_libraries(pcl_Curvature ${PCL_LIBRARIES})
add_executable(pcl_Curvature1 /root/PCL/src/Chapter1/PCL点云基于曲率大小渲染颜色1.cpp)
target_link_libraries(pcl_Curvature1 ${PCL_LIBRARIES})